import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ETaskType
    
    export  class ETaskType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): ETaskType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 52) 
            {
                throw new MarshalException();
            }
            return ETaskType.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): ETaskType
        {
            return new ETaskType(arg1);
        }

        public static /* const */_ETaskTypeKillBoss: int=2;

        public static /* const */_ETaskTypeDeliverLetters: int=3;

        public static /* const */_ETaskTypeKillBossDrop: int=4;

        public static /* const */_ETaskTypeCollect: int=5;

        public static /* const */_ETaskTypeEscort: int=6;

        public static /* const */_ETaskTypeExplore: int=7;

        public static /* const */_ETaskTypeHandOver: int=8;

        public static /* const */_ETaskTypeMallBuy: int=9;

        public static /* const */_ETaskTypeTaskCount: int=10;

        public static /* const */_ETaskTypeReachMap: int=11;

        public static /* const */_ETaskTypeRepair: int=12;

        public static /* const */_ETaskTypeKillBossCount: int=13;

        public static /* const */_ETaskTypeCopyStudy: int=14;

        public static /* const */_ETaskTypeGroupKillBoss: int=15;

        public static /* const */_ETaskTypeCatchBoss: int=16;

        public static /* const */_ETaskTypeWeaponStrengthen: int=17;

        public static /* const */_ETaskTypeRefreshPetGrowth: int=18;

        public static /* const */_ETaskTypeApplyGuild: int=19;

        public static /* const */_ETaskTypePetSite: int=20;

        public static /* const */_ETaskTypeRunBusiness: int=21;

        public static /* const */_ETaskTypePetMerge: int=22;

        public static /* const */_ETaskTypeKillBossEx: int=23;

        public static /* const */_ETaskTypeKillBossDropEx: int=24;

        public static /* const */_ETaskTypeCampTreasureSeize: int=25;

        public static /* const */_ETaskTypeCampTreasureGuard: int=26;

        public static /* const */_ETaskTypeTimeCount: int=27;

        public static /* const */_ETaskTypeBattle: int=28;

        public static /* const */_ETaskTypeLove: int=29;

        public static /* const */_ETaskTypeFlower: int=30;

        public static /* const */_ETaskTypeLifestyle: int=31;

        public static /* const */_ETaskTypeLifestyleDress: int=32;

        public static /* const */_ETaskTypeExploreGuide: int=33;

        public static /* const */_ETaskTypeEquipRefresh: int=34;

        public static /* const */_ETaskTypeJewel: int=35;

        public static /* const */_ETaskTypeRoot: int=36;

        public static /* const */_ETaskTypeSchoolGuide: int=37;

        public static /* const */_ETaskTypeCopyCount: int=38;

        public static /* const */_ETaskTypeFightSpirit: int=40;

        public static /* const */_ETaskTypeReachMapNew: int=41;

        public static /* const */_ETaskTypeArena: int=42;

        public static /* const */_ETaskTypeGetAmulet: int=43;

        public static /* const */_ETaskTypeIdentifyAmulet: int=44;

        public static /* const */_ETaskTypeEquipAmulet: int=45;

        public static /* const */_ETasktypeEquipDecopmpose: int=39;

        public static /* const */_ETaskTypeClifford: int=47;

        public static /* const */_ETaskTypeCountryMoneyKnow: int=48;

        public static /* const */_ETaskTypeCountryMoneyGive: int=49;

        public static /* const */_ETaskTypeSpiritEquip: int=50;

        public static /* const */_ETaskTypeCrossMassacreActivity: int=51;

        public static /* const */_ETaskTypeTalk: int=1;

        public static /* const */_ETaskTypeUpgradeAmulet: int=46;

        public /* var */__value: int;
    }
